<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>

</head>

<body>
    <div id="app">
		<ul>
		<li v-for="(item,index) in arr" :key="index">{{item.name}}</li>
		<li v-for="(item,index) in arr" :key="index">{{item.name}}----{{item.color}}----{{item.id}}</li>
		
		</ul>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
			arr:[{
			id:1,name:'apple',color:'red'
			},{
			id:2,name:'pear',color:'yellow'},
			{
			id:3,name:'orange',color:'orange'}]
            },
            methods: {
		
            }
        })
    </script>
</body>

</html>